#ifndef BASKETBALLWIDGET_H
#define BASKETBALLWIDGET_H

#include <QWidget>
#include <qtablewidget.h>
#include <QKeyEvent>
class BasketballWidget : public QWidget
{
    Q_OBJECT
public:
    explicit BasketballWidget(QWidget *parent = 0);

signals:

public slots:
    void OnTableWidgetCellChanged(int row, int column);
private:
    void TableWidgetInit();
    void TableWidgetSortByColumn(int col);
    void TableWidgetInsertRows(const QStringList &list,int row);
    void DisplayAllData();

    QString  DoCalculate(const QString & Multiple, const QString & Recoed,const QString & CompareType,const QString &Comparefraction);


    QString  DocalculateResult(const QString & Calculate, const QString & Result,const QString & CompareType,const QString &Comparefraction);

    QString DoRecoedCalculate(const QString & Recoed);

    QString DoRecoedCalculateResult(const QString & Calculate,const QString & Result,const QString &Comparefraction);

protected:
    virtual void keyReleaseEvent(QKeyEvent * event);


private:
    QTableWidget *m_TableWidget;
    Qt::SortOrder *m_ColOrder;

};

#endif // BASKETBALLWIDGET_H
